package demo.DataStrucAndAlgo.SingletonPattern.Prototype;

/**
 * @Auther: hjy(lc))
 * @Date: 2022/8/13-08-13-17:00
 * @Description：demo.DataStrucAndAlgo.SingletonPattern.Prototype
 */
public class Square extends Shape{
    public Square() {
        type = "Square";
    }

    @Override
    void drow() {
        System.out.println("************");
        System.out.println("*          *");
        System.out.println("*          *");
        System.out.println("*          *");
        System.out.println("************");
    }
}
